﻿{extend name="$_tpl_public_layout_ace"/}


{block name="breadcrumb"}
<ul class="breadcrumb">
	<li><i class="fa fa-home home-icon"></i><a href="{:url('manage/index/index')}">{:config('web_site_title')}</a></li>
	<li><a href="{:url('seatsel_manage/index/index')}">{:config('proj_name')}</a></li>
	<li><a href="{:url('seatsel_manage/config/index')}">{$sideName}</a></li>
</ul>
{/block}


{block name="pageheader"}
<h1>
	{$sideName}
</h1>
{/block}


{block name="content"}
<form method="post" action="{:url('seatsel_manage/config/doSet')}" enctype="multipart/form-data" class="form-horizontal J_ajaxForm">

	<h3 class="form-lighter">基本信息</h3>
	
	<div class="form-group">
		<label class="col-sm-2 control-label">系统名称</label>
		<div class="col-sm-5">
			<input type="text" name="data[proj_name]" value="{$info['proj_name']}" class="form-control" />
		</div>
		<div class="col-sm-5"></div>
	</div>
	<div class="form-group">
		<label class="col-sm-2 control-label">系统LOGO</label>
		<div class="col-sm-5">
			<div class="form-control-static">
				<input type="file" name="proj_logo" class="J_uploadfile" />
			</div>
			<div class="J_preview">
				<img src="{:config('FTP_WEB')}{$info['proj_logo']}" class="cover-img" onerror="Javascript:this.src='/tplnew/public/images/blank.png';" />
			</div>
		</div>
		<div class="col-sm-5 help-block"><i class="fa fa-info-circle color-info1"></i>系统LOGO，建议尺寸为200*68px</div>
	</div>
	<div class="form-group">
		<label class="col-sm-2 control-label">客服二维码</label>
		<div class="col-sm-5">
			<div class="form-control-static">
				<input type="file" name="kefu_ewm" class="J_uploadfile" />
			</div>
			<div class="J_preview">
				<img src="{:config('FTP_WEB')}{$info['kefu_ewm']}" class="cover-img" onerror="Javascript:this.src='/tplnew/public/images/blank.png';" />
			</div>
		</div>
		<div class="col-sm-5 help-block"><i class="fa fa-info-circle color-info1"></i>请上传客服二维码，建议尺寸为600*600px</div>
	</div>
	<div class="form-group">
		<label class="col-sm-2 control-label">客服电话</label>
		<div class="col-sm-5">
			<input type="text" name="data[kefu_tel]" value="{$info['kefu_tel']}" class="form-control" />
		</div>
		<div class="col-sm-5"></div>
	</div>

	<h3 class="form-lighter">订单相关</h3>
	<div class="form-group">
		<label class="col-sm-2 control-label">支付方式</label>
		<div class="col-sm-5">
			<div>
				<label class="checkbox-inline mr10"><input type="checkbox" name="allow_pay_method[]" value="1" {$info['is_alipay'] == 1 ? 'checked' : ''} />支付宝</label>
				<label class="checkbox-inline"><input type="checkbox" name="allow_pay_method[]" value="2" {$info['is_wxpay'] == 1 ? 'checked' : ''} />微信</label>
			</div>
		</div>
		<div class="col-sm-5"></div>
	</div>
	<div class="form-group">
		<label class="col-sm-2 control-label">订单支付超时时间</label>
		<div class="col-sm-5">
			<input type="text" name="data[pay_over_time]" value="{$info['pay_over_time']}" class="form-control" />
		</div>
		<div class="col-sm-5 help-block"><i class="fa fa-info-circle color-info1"></i> 单位：秒，自己换算一下</div>
	</div>
	<div class="form-group">
		<label class="col-sm-2 control-label">订单退款超时时间</label>
		<div class="col-sm-5">
			<input type="text" name="data[refund_over_time]" value="{$info['refund_over_time']}" class="form-control" />
		</div>
		<div class="col-sm-5 help-block"><i class="fa fa-info-circle color-info1"></i> 单位：秒，自己换算一下</div>
	</div>
	
	<h3 class="form-lighter">分享相关</h3>
	<div class="form-group">
		<label class="col-sm-2 control-label">分享标题</label>
		<div class="col-sm-5">
			<input type="text" name="data[share_title]" value="{$info['share_title']}" class="form-control" />
		</div>
		<div class="col-sm-5"></div>
	</div>
	<div class="form-group">
		<label class="col-sm-2 control-label">分享描述</label>
		<div class="col-sm-5">
			<input type="text" name="data[share_desc]" value="{$info['share_desc']}" class="form-control" />
		</div>
		<div class="col-sm-5"></div>
	</div>
	<div class="form-group">
		<label class="col-sm-2 control-label">分享图标</label>
		<div class="col-sm-5">
			<div class="form-control-static">
				<input type="file" name="share_icon" class="J_uploadfile" />
			</div>
			<div class="J_preview">
				<img src="{:config('FTP_WEB')}{$info['share_icon']}" class="cover-img" onerror="Javascript:this.src='/tplnew/public/images/blank.png';" />
			</div>
		</div>
		<div class="col-sm-5 help-block"><i class="fa fa-info-circle color-info1"></i>如果未设置分享图标。则默认使用系统LOGO</div>
	</div>
	
	<div class="clearfix form-actions">
		<div class="col-md-offset-2 col-md-10">
			<button type="submit" class="btn btn-primary btn-sm J_ajaxSubmit">保存</button>
		</div>
	</div>
</form>
{/block}


{block name="script"}
<!-- 上传图片展示 -->
<script type="text/javascript" src="__STATIC__/Zz22zzUI/addon/uploadPreview.js"></script>
{/block}